Skip to content

test(media-use): resolve tests + eval harness#1685

Merged
miguel-heygen merged 9 commits into
mainfrom
media-use/4-tests-eval
Jun 25, 2026
Merged

test(media-use): resolve tests + eval harness#1685
miguel-heygen merged 9 commits into
mainfrom
media-use/4-tests-eval

Conversation

@miguel-heygen

Copy link
Copy Markdown
Collaborator

What

Brief description of the change.

Why

Why is this change needed?

How

How was this implemented? Any notable design decisions?

Test plan

How was this tested?

  • Unit tests added/updated
  • Manual testing performed
  • Documentation updated (if applicable)

Foundation for media-use — the media resolution layer for HyperFrames.

- manifest.mjs: JSONL read/write/find for .media/manifest.jsonl
- index-gen.mjs: regenerate agent-readable index.md from manifest
- cache.mjs: content-addressed global cache at ~/.media/ (SHA-256, sentinel)
- freeze.mjs: download URL or copy local file to .media/
- probe.mjs: extract duration/dimensions via ffprobe
- adopt.mjs: scan assets/ directory, register existing files with metadata
- 19 passing tests (manifest round-trip, cache, promote, index generation)

miguel-heygen commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator Author

miguel-heygen and others added 3 commits June 24, 2026 18:46
Format adopt/cache/probe/manifest.test (CI oxfmt --check gate).
Cap freezeUrl downloads at 256MB so a hostile/runaway URL can't fill
the disk (addresses CodeQL #670: network data written to file).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- resolve.mjs: cheapest-first cascade
- BGM/SFX via heygen --headers, Image/Icon via heygen asset search
- Brand tokens from frame.md / design.md (local, no API)
- SKILL.md: full agent docs + hyperframes.dev/design redirect
- Router skill + workflow skill references
Format brand/heygen-search/providers/sfx providers + resolve.mjs
(CI oxfmt --check gate).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@miguel-heygen miguel-heygen force-pushed the media-use/3-studio-ui branch from 1de2de4 to 466eac2 Compare June 24, 2026 22:50
@miguel-heygen miguel-heygen force-pushed the media-use/4-tests-eval branch from d861142 to fc0e8e8 Compare June 24, 2026 22:50
@miguel-heygen miguel-heygen force-pushed the media-use/3-studio-ui branch from 466eac2 to a25ed8b Compare June 24, 2026 23:45
@miguel-heygen miguel-heygen force-pushed the media-use/4-tests-eval branch from fc0e8e8 to 1f8ba94 Compare June 24, 2026 23:45
miguel-heygen and others added 5 commits June 24, 2026 20:02
…1.6)

Verified live against the official Go `heygen` CLI v0.1.6 with a valid key:

- Caller attribution: pass `--headers 'X-HeyGen-Client-Source: media-use'`
  (the allowlisted flag the CLI added for media-use in v0.1.6). The old
  `--x-source media-use` was never a real flag and broke every call.
- Command is `asset search` (the `list` leaf was dropped in v0.1.6), not
  `asset search list`.
- `--min-score` is sent server-side: honored by `audio sounds list`, but the
  `asset search` backend rejects it and returns no score field, so only the
  audio providers pass it (image/icon don't).
- Drop hardcoded `ext` so resolve.mjs derives it from the URL: catalog icons
  are .png (not .svg), some BGM is .wav (not .mp3).

Also: surface CLI/auth failures on stderr instead of swallowing them as
'no results', carry icon width/height through, and document the heygen CLI
install + >= v0.1.6 requirement.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Asset tab: categorized sections, filter chips, text search, audio
spectrum visualizer, "in use" badge, manifest metadata, panel tokens.

Beat fix: only run analysis when a beats file exists on disk.
CI oxfmt --check gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
12 resolve engine tests + eval against 7 real registry blocks.
CI oxfmt --check gate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@miguel-heygen miguel-heygen force-pushed the media-use/3-studio-ui branch from a25ed8b to 6177068 Compare June 25, 2026 00:03
@miguel-heygen miguel-heygen force-pushed the media-use/4-tests-eval branch from 1f8ba94 to 9ce8718 Compare June 25, 2026 00:04
Base automatically changed from media-use/3-studio-ui to main June 25, 2026 00:29
@miguel-heygen miguel-heygen merged commit 34bb496 into main Jun 25, 2026
20 checks passed
@miguel-heygen miguel-heygen deleted the media-use/4-tests-eval branch June 25, 2026 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant